// import { Result } from '@/common/dto/result.type';
import { CommonType } from '@/common/dto/common.type';
import { OrgImageType } from '@/modules/orgImage/dto/orgImage.output';
import { Field, ObjectType } from '@nestjs/graphql';
// import { Organization } from '../models/organization.entity';
@ObjectType()
export class OrganizationType extends CommonType {
  @Field({
    description: '营业执照',
    nullable: true,
  })
  businessLicense?: string;
  @Field({
    description: '法人身份证正面',
    nullable: true,
  })
  identityCardFrontImg?: string;
  @Field({
    description: '法人身份证反面',
    nullable: true,
  })
  identityCardBackImg?: string;
  @Field({
    description: '标签 以, 隔开',
    nullable: true,
  })
  tags?: string;
  @Field({
    description: '简介',
    nullable: true,
  })
  description?: string;
  @Field({
    description: '机构名',
    nullable: true,
  })
  name?: string;
  @Field({
    description: 'logo',
    nullable: true,
  })
  logo?: string;

  @Field({
    description: '地址',
    nullable: true,
  })
  address?: string;
  @Field({
    description: '经度',
    nullable: true,
  })
  longitude?: string;
  @Field({
    description: '纬度',
    nullable: true,
  })
  latitude?: string;
  @Field({
    description: '电话',
    nullable: true,
  })
  tel?: string;

  @Field(()=>[OrgImageType],{nullable:true,description:'封面图'}) // 用这种方式通知graphql，这个字段是数组
  orgFrontImg?:OrgImageType[]
  @Field(()=>[OrgImageType],{nullable:true,description:'室内图'}) 
  orgRoomImg?:OrgImageType[]
  @Field(()=>[OrgImageType],{nullable:true,description:'其他图'})
  orgOtherImg?:OrgImageType[]
}
